package com.cheng.cms.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.text.SimpleDateFormat;
import java.util.Date;
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Residents {
    private int numberID;
    private String hostname;
    private String sex;
    private String buildingNo;
    private String roomNo;
    private String area;
    private String tele;
    private String work;
    private String familyNum;
    private String balance;
    private Date checkinDate;
    private String propertyFee;

    public String getCheckinDate() {
            Date currentTime = checkinDate;
            SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd");
            String dateString = formatter.format(currentTime);
            return dateString;
    }
}
